package com.replication.support;

import com.replication.constants.DBType;

/**
 * Created by yangshoujun on 2016/3/7 10:49.
 */
public class DBSelectContext {

    private static final ThreadLocal<DBType> threadLocal = new ThreadLocal<DBType>();

    public static void set(DBType type) {
        threadLocal.set(type);
    }

    public static DBType get() {
        DBType type = threadLocal.get();
        return type;
    }
}
